const Fly = require("flyio/dist/npm/wx")
const fly = new Fly();

fly.config.timeout = 10000;
fly.config.baseURL = "https://capi.mwee.cn"
fly.interceptors.request.use((request) => {
    request.headers["X-Tag"] = "flyio";
    return request;
})
fly.interceptors.response.use(
    (response) => {
        return response.data
    },
    (err) => {
        return undefined;
    }
)

export default fly;
